home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
rbbs_pc
/
sx227r1.zip
/
DEF-REC.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-30
|
2KB
|
79 lines
ECHO OFF
:
:--------------------------------------------------------------
: RECOPX batch file for Silver Xpress
:
: (c) copyright 1989-90 Santronics Software
:--------------------------------------------------------------
: Input Parameters
:--------------------------------------------------------------
:
: 1 hotkey character from Xpress protocol menu.
: 2 baud rate
: 3 port number
: 4 full path file name
:
:--------------------------------------------------------------
: Modify and Add extra file transfer protocols here.
:
: 1) first add a IF statement with a GOTO
: 2) then add the goto LABEL with the appropiate logic.
:--------------------------------------------------------------
:
IF "%1" == "K" goto PCKERMIT
IF "%1" == "X" goto XMODEM
IF "%1" == "Y" goto YMODEM
IF "%1" == "Z" goto ZMODEM
IF "%1" == "S" goto SEALINK
IF "%1" == "W" goto WXMODEM
GOTO ERROR
:
:WXMODEM
:
WXMODEM -b %2 -1 COM%3 -p W -r -f %4 -c
EXIT ERRORLEVEL
GOTO END
:
:PCKERMIT
:
PCKERMIT -l COM%3 -b %2 -m 31 -p n -r -c
EXIT ERRORLEVEL
GOTO END
:
:XMODEM
:
DSZ port %3 speed %2 restrict rx -c %4
EXIT ERRORLEVEL
GOTO END
:
:YMODEM
:
DSZ port %3 speed %2 restrict rx -k %4
EXIT ERRORLEVEL
GOTO END
:
:ZMODEM
:
DSZ port %3 speed %2 rz %4
EXIT ERRORLEVEL
GOTO END
:
:SEALINK
:
CLINK R /P%3 /B%2
EXIT ERRORLEVEL
GOTO END
:
:ERROR
:
ECHO File transfer %1 not defined in batch file.
:
:---------------------------------------------------------------
:END